Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

webglew

Package Overview
Dependencies
Maintainers
4
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webglew

WebGL extension wrangler

  • 1.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
375
increased by6.23%
Maintainers
4
Weekly downloads
 
Created
Source

webglew

WebGL E xtension W rangler. Manages WebGL extensions so you don't have to.

Example

var canvas = document.createElement("canvas")
var gl = canvas.getContext("webgl")
var ext = require("webglew")(gl)

if(ext.OES_texture_float) {
  console.log("GL context supports floats!")
} else {
  console.log("No floating point textures :'(")
}

Install

npm install webglew

API

require("webglew")(gl)

To use the library, call the module with a WebGL context and it will return a JavaScript object with a list of properties. For convenience, extensions with a vendor specific prefix are aliased to the root WEBGL_* name. For example,

WEBKIT_WEBGL_lose_context

Becomes:

WEBGL_lose_context

Credits

(c) 2013-2014 Mikola Lysenko. MIT

Keywords

FAQs

Package last updated on 01 Dec 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc